import { localStg, sessionStg } from '@/utils/storage';

/** Get token */
export function getToken() {
  return sessionStg.get('token') || localStg.get('token') || null;
}

/** Get referesh token */
export function getRefreshToken() {
  return sessionStg.get('refreshToken') || localStg.get('refreshToken') || null;
}

/** Clear auth storage */
export function clearAuthStorage() {
  localStg.remove('token');
  sessionStg.remove('token');
}
